package com.k8s.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = "http://127.0.0.1:8080/platform", name = "platform")
public interface PlatformServiceClient {

    /**
     * 发送短信
     *
     * @param platformId  平台id
     * @param mobilePhone 手机号
     * @param message     短信内容
     * @param supplierId  短信内容
     * @return
     */
    @RequestMapping(value = "/feign/smsSend/sendMessage", method = {RequestMethod.POST}, produces = "application/json;charset=UTF-8")
    void sendMessage(@RequestParam("platformId") Long platformId,
                     @RequestParam("mobilePhone") String mobilePhone,
                     @RequestParam("message") String message,
                     @RequestParam("supplierId") String supplierId);
}
